package com.qyhl.webtv.module_circle.circle.moment;


import com.qyhl.webtv.commonlib.entity.circle.CircleHomeBean;
import com.qyhl.webtv.commonlib.entity.intergral.CoinBean;

import java.util.List;

/**
 * Created by qyhl on 2018/1/18.
 */

public interface CircleMomentContract {
    interface CircleMomentView {
        void setContent(List<CircleHomeBean> beanList, boolean isMore);

        void setNetError(String msg);

        void setError(String msg);

        void setEmpty(String msg);

        void setLog(String msg);

        void showMessage(String msg);

        void commentSuccess(int id, String msg, int code);

        void commentError(String msg);

        void getCoinSuccess(CoinBean coinBean);

        void getCoinError(String msg);
    }

    interface CircleMomentPresenter {
        void getContent(String username, String lastTopicId);

        void setContent(List<CircleHomeBean> beanList, boolean isMore);

        void sendComment(String topicId, String content, String dstUsername);

        void setError(int code, String msg);

        void commentSuccess(int id, String msg, int code);

        void commentError(String msg);

        void getCommentCoin();

        void getCoinSuccess(CoinBean coinBean);

        void getCoinError(String msg);
    }

    interface CircleMomentModel {
        void getContent(String username, String lastTopicId);

        void sendComment(String topicId, String content, String dstUsername);

        void getComCoin();
    }
}
